/**
 * @projectName study_java
 * @package Factory
 * @className Factory.SimpleFactory
 */
package Factory.simple;

import Factory.Cat;
import Factory.Dog;
import Factory.IAnimal;

/**
 * SimpleFactory
 * @description 简单工厂
 * @author answer_wx
 * @date 2022/6/29 16:11
 * @version 1.0
 */
public class SimpleFactory {
    public IAnimal createCat() {
        return new Cat();
    }

    public IAnimal createDog() {
        return new Dog();
    }
}